#ifndef FORM_H
#define FORM_H
#include<QTcpSocket>
#include <QWidget>

namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = nullptr,QTcpSocket *tcpsock = nullptr);
    ~Form();

signals:
    void clientDisconnected(Form *form);

private slots:
    void read();
    void disconnected();

    void on_pushButton_clicked();

private:
    Ui::Form *ui;
    QTcpSocket *tcpsock;
};

#endif // FORM_H
